containerd: classic builder fails to preserve platform information correctly #47823
Labels
containerd-integration
Issues and PRs related to containerd integration
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/0-triage
Description
While using the classic builder with the containerd snapshotter integration enabled,
DOCKER_BUILDKIT=0 docker build --platform something-non-native ...
fails, and the error message is referencing the native platform of the selected base image (which if it exists, is used and the wrong platform is used for the build 😬).Reproduce
(the image I was testing here was built via https://github.com/tianon/dockerfiles/blob/fc8d0a8d84b3a8c90685181af21014077902cbb3/docker-master/Dockerfile + https://github.com/tianon/dockerfiles/blob/fc8d0a8d84b3a8c90685181af21014077902cbb3/docker-master/Dockerfile.containerd -> https://oci.dag.dev/?image=tianon/docker-master:containerd@sha256:0b27437d09e78b950c740966b00560ea7012a1261a6e90029030f68e328a9409)
Expected behavior
That
RUN
should printaarch64
.If I first
docker pull bash
(to get my local-archamd64
image), it'll erroneously printx86_64
, which IMO is actually even worse than erroring out because that's generating an incorrect build. 😭docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: